﻿@model RPSImporter.Models.Settings.HierarchyFileSettings

    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fichier Organisation Fonctionnelle</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </div>

        @if (RPSImporter.Services.DatabaseSvc.Instance.Settings.GeneralSettings.First().IsMultiColumnPersonImport)
        { 
            <div class="editor-label">
                @Html.LabelFor(model => model.Company)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Company)
                @Html.ValidationMessageFor(model => model.Company)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Department)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Department)
                @Html.ValidationMessageFor(model => model.Department)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Enterprise)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Enterprise)
                @Html.ValidationMessageFor(model => model.Enterprise)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Sector)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Sector)
                @Html.ValidationMessageFor(model => model.Sector)
            </div>
        }
        else
        {
            <div class="editor-label">
                @Html.LabelFor(model => model.CodeParent)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.CodeParent)
                @Html.ValidationMessageFor(model => model.CodeParent)
            </div>
        }
    </fieldset>
